



HEADPATH=/home/iotnet/jmq
LIBPATH=/home/iotnet/jmq/mosquitto-1.5.5/lib



HARG=-I
LIBARG=-L
VAR=-l
CC=gcc



all:
	${CC} *.c -o pub ${HARG} ${LIBPATH} ${VAR}mosquitto ${LIBARG} ${LIBPATH} 


run:
	./pub -H "a1oZymyf1o4.iot-as-mqtt.cn-shanghai.aliyuncs.com" -p 1883 -t "/sys/a1oZymyf1o4/JMQ1998/thing/event/property/post" -c "1998|securemode=3,signmethod=hmacsha1|" \
		-u "JMQ1998&a1oZymyf1o4" -s "7E9AF5642B5B9BB19594AC4FA0F5AA3327EF43FB" -k 60
